<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/tld/struts-bean" prefix="bean"%> 
<%@ taglib uri="/WEB-INF/tld/struts-html" prefix="html"%>
<%@ taglib uri="/WEB-INF/tld/struts-logic" prefix="logic" %>
<%@ taglib uri="/WEB-INF/tld/jstl/c" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="/WEB-INF/tld/jstl/fn" prefix="fn" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="ebb365,ebb365,ebb365">
<meta http-equiv="description" content="ebb365">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="/admin/css/css.css">
<script type="text/javascript">
function checkForm(){
  if(document.forms[0].titlename.value==''){
     alert('分类名不能为空');
     return false;
  }else if(document.forms[0].info.value==''){
     alert('请写点分类介绍，该分类的作用');
     return false;
  }else{
     return true;
  }
  return true;
}
</script>
</head>
<body>
<table width="700" border="1" align="center">
<tr><td align="center"><b>分类透视图</b></td><td align="center"><b>操作</b></td></tr>
<tr><td>
<logic:present name="optionStr2">
<bean:write name="optionStr2" filter="false"/>
</logic:present>
</td><td valign="top">
<html:form action="/admin/BinTreeManageAction.do?method=addTreeAction" method="post" onsubmit="return checkForm();">
分类选择：<html:select property="parentid" size="1">
<html:option value="-1">根目录</html:option>
<logic:present name="optionStr">
<bean:write name="optionStr" filter="false"/>
</logic:present>
</html:select><br>
分 类 名：<html:text property="titlename" size="20"></html:text><br>
简短介绍：<html:textarea property="info" rows="4" cols="30"></html:textarea><br>
<html:submit>提交</html:submit><br>
</html:form>
</td></tr></table>
</body>
</html>